﻿using System;
using System.Web.Mvc;

namespace JinianNet.Web.MVC
{
    public abstract class ViewEngine : VirtualPathProviderViewEngine
    {
        public ViewEngine(string[] viewLocation, string[] masterLocation, string[] areaMasterLocation, string[] areaViewLocation)
            : this(viewLocation,masterLocation, areaMasterLocation, areaViewLocation, viewLocation, areaViewLocation)
        {
        }

        public ViewEngine(string[] viewLocation, string[] masterLocation, string[] areaMasterLocation, string[] areaViewLocation, string[] partialViewLocation, string[] areaPartialViewLocation)
        {
            base.MasterLocationFormats = masterLocation;
            base.AreaMasterLocationFormats = areaMasterLocation;
            base.ViewLocationFormats = viewLocation;
            base.AreaViewLocationFormats = areaViewLocation;
            base.PartialViewLocationFormats = partialViewLocation;
            base.AreaPartialViewLocationFormats = areaPartialViewLocation;
        }
    }
}
